import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/index.less'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import zh from 'dayjs/locale/zh-cn'
// 引入vant
import Vant from 'vant'
import 'vant/lib/index.css'
// 加载动态设置REM基准值 按10分
import 'amfe-flexible'
Vue.config.productionTip = false
dayjs.locale(zh)
dayjs.extend(relativeTime)
Vue.filter('toDay', dateStr => {
  return dayjs().to(dayjs(dateStr))
})
Vue.use(Vant)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
